<?php

namespace App\Http\Controllers;

use App\Bug;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;

class ConsolesController extends Controller
{
    public function __construct()
    {
        $this->middleware('auth');
    }

    public function index(){
        $data=Bug::where('recipient',Auth::user()->id)->get();
        return view('consoles.index')->with('data',$data);
    }
}
